// 代码题一 ：用promise改进下面代码
setTimeout ( function () {
    var a='hello'
    setTimeout ( function () {
        var b='1agou'
        setTimeout ( function () {
            var c='IVU'
            console.log(a + b + c)
        }, 10)
    }, 10)
},10 )

// 解答
let promise = new Promise((resolve,reject)=>{
    resolve('hello')
});
promise.then((value)=>{
    return value + 'lagou'
}).then(value=>{
    console.log(value + 'I love U')
});

